<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var i=Math.floor(Math.random()*100);
			alert(i);
			while(true){
				var j=parseInt(prompt("请您猜一猜"));
				if(i==j){
					alert("恭喜您，猜对了！")
					break;
				}else if(i>j){
					alert("数值太小！")
				}else{
					alert("数值太大！")
				}
			}
		</script>
	</body>
</html>
